package com.example.ymm.modules1.entity.my.user;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;


@Data
public class DbOrder implements Serializable {

    @TableId
    private String orderId;

    private String userId;

    private String userName;

    Integer status;//状态 0下单成功 1 已取货 2订单准备中 99 已取消

    Integer integral;
    Integer num;//商品总数

    String remark;

    String note;

    @TableField(fill= FieldFill.INSERT)
    private Timestamp createTime;

    @TableField(fill=FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;


    @TableField(exist = false)
    List<DbOrderItem> items;

}
